<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue元编程hello world</title>
</head>

<body>
    <div id="app">
        西瓜 <input type="text" v-model='price1'>
        西红柿<input type="text" v-model='price2'>
         土豆<input type="text" v-model='price3'>
         芒果<input type="text" v-model='price4'>
        <h1>{{allprice}}</h1>
    </div>


    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script>
        // 要求 配图片  
        var vm = new Vue({
            el: '#app',
            data: {
                price1:0,
                price2:0,
                price3:0,
                price4:0,

            },
            methods: {

            },
            computed: {
                
            }
        }
      )


    </script>
</body>

</html>